<?php /*a:3:{s:65:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\evaluate\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3><?php echo htmlentities(lang('ds_evaluate')); ?></h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>

    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('ds_goods_name')); ?></dt>
                <dd><input class="txt" type="text" name="goods_name" id="goods_name" value="<?php echo htmlentities(app('request')->get('goods_name')); ?>" /></dd>
            </dl>
            <dl>
                <dt><?php echo htmlentities(lang('admin_evaluate_addtime')); ?></dt>
                <dd>
                    <input class="txt date" type="text" name="stime" id="stime" value="<?php echo htmlentities(app('request')->get('stime')); ?>" />
                    ~
                    <input class="txt date" type="text" name="etime" id="etime" value="<?php echo htmlentities(app('request')->get('etime')); ?>" />
                </dd>
            </dl>
             <div class="btn_group">
                 <input type="submit"class="btn" value="<?php echo htmlentities(lang('ds_query')); ?>"/>
                 <?php if($filtered): ?>
                <a href="<?php echo url('Evaluate/evalgoods_list'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
                <?php endif; ?>
            </div>
        </div>
    </form>
    
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
            <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
        </div>
        <ul>
            <li><?php echo htmlentities(lang('admin_evaluate_help1')); ?></li>
            <li><?php echo htmlentities(lang('admin_evaluate_help2')); ?></li>
        </ul>
    </div>
    
    
    <table class="ds-default-table">
        <thead>
            <tr class="thead">
                <th class="w300"><?php echo htmlentities(lang('ds_goods_name')); ?> </th>
                <th><?php echo htmlentities(lang('admin_evaluate_buyerdesc')); ?></th>
                <th class="w108 align-center"><?php echo htmlentities(lang('admin_evaluate_frommembername')); ?> </th>
                <th class="w200 align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
            </tr>
        </thead>
        <tbody>
        <?php if(!(empty($evalgoods_list) || (($evalgoods_list instanceof \think\Collection || $evalgoods_list instanceof \think\Paginator ) && $evalgoods_list->isEmpty()))): if(is_array($evalgoods_list) || $evalgoods_list instanceof \think\Collection || $evalgoods_list instanceof \think\Paginator): if( count($evalgoods_list)==0 ) : echo "" ;else: foreach($evalgoods_list as $key=>$v): ?>
        <tr class="hover">
            <td><a href="<?php echo url('home/Goods/index',['goods_id'=>$v['geval_goodsid']]); ?>" target="_blank"><?php echo htmlentities($v['geval_goodsname']); ?></a></td>
            <td class="evaluation"><div><?php echo htmlentities(lang('admin_geval_scores')); ?>：<span class="raty" data-score="<?php echo htmlentities($v['geval_scores']); ?>"></span><time>[<?php echo date('Y-m-d',$v['geval_addtime']); ?>]</time></div>
                <div><?php echo htmlentities(lang('admin_geval_content')); ?>：<?php echo htmlentities($v['geval_content']); ?></div>

                <?php if(!(empty($v['geval_image']) || (($v['geval_image'] instanceof \think\Collection || $v['geval_image'] instanceof \think\Paginator ) && $v['geval_image']->isEmpty()))): ?>
                <div><?php echo htmlentities(lang('admin_geval_image')); ?>：
                    <ul class="evaluation-pic-list">
                        <?php $image_array = explode(',', $v['geval_image']);if(is_array($image_array) || $image_array instanceof \think\Collection || $image_array instanceof \think\Paginator): if( count($image_array)==0 ) : echo "" ;else: foreach($image_array as $key=>$value): ?>
                        <li style="width: auto"><a data-lightbox="lightbox-image"  href="<?php echo sns_thumb($value, 1024); ?>"><img src="<?php echo sns_thumb($value); ?>"> </a></li>
                       <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <?php endif; if(!(empty($v['geval_explain']) || (($v['geval_explain'] instanceof \think\Collection || $v['geval_explain'] instanceof \think\Paginator ) && $v['geval_explain']->isEmpty()))): ?>
                <div id="explain_div_<?php echo htmlentities($v['geval_id']); ?>"> <span style="color:#996600;padding:5px 0px;">[<?php echo htmlentities(lang('admin_evaluate_explain')); ?>]<?php echo htmlentities($v['geval_explain']); ?></span> </div>
                <?php endif; ?></td>
            <td class="align-center"><?php echo htmlentities($v['geval_frommembername']); ?></td>
            <td class="align-center">
                <a href="javascript:dsLayerOpen('<?php echo url('Evaluate/explain_save',['geval_id'=>$v['geval_id']]); ?>','回复评论')"  class="dsui-btn-edit"><i class="iconfont"></i>回复评论</a>
                <a href="javascript:dsLayerConfirm('<?php echo url('Evaluate/evalgoods_del',['geval_id'=>$v['geval_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>')"  class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
            </td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; else: ?>
        <tr class="no_data">
            <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
        </tr>
        <?php endif; ?>
    </table>
    <?php echo $show_page; ?>
</div>
<link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/css/lightbox.min.css">
<script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.lightbox/js/lightbox.min.js"></script>
<script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.raty/jquery.raty.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
        $('#etime').datepicker({dateFormat: 'yy-mm-dd'});

        $('.raty').raty({
            path: "<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery.raty/img",
            readOnly: true,
            score: function() {
                return $(this).attr('data-score');
            }
        });
    });
</script> 
